<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class Test extends Controller
{
    use \App\Traits\UserTrait;
    public function index(Request $request){
      print_r('test ok!');
    }
    public function getUserBaseInfo(Request $request)
    {
        $data = [
            'phone' => $request->input('phone'),
            'code' => $request->input('code'),
        ];
        $result = $this->getUserBaseInfoTrait($data['code'], $data);
        var_dump($result);exit;
    }

    public function getUserLoginBaseInfo(Request $request)
    {
        $data = [
            'phone' => $request->input('phone'),
            'pwd' => $request->input('pwd'),
            'code' => $request->input('code'),
        ];
        $result = $this->userLoginTrait($data['code'], $data);
        var_dump($result);exit;
    }

}
